package com.youkeyi.ddy.cloud.basic.crm.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 客户订单信息
 * </p>
 *
 * @author xiawang.liu
 * @since 2024-03-29
 */
@TableName("sys_customer_order")
public class SysCustomerOrder extends Model<SysCustomerOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("primary_key")
    private String primaryKey;

    /**
     * 解决并发更新问题,每次更新需要用 uuid 做比较判断数据是否已变更
     */
    @TableField("uuid")
    private String uuid;

    /**
     * 旧的uuid,mybatis 更新时需要
     */
    @TableField("old_uuid")
    private String oldUuid;

    /**
     * 主体key
     */
    @TableField("corp_key")
    private String corpKey;

    /**
     * 财务结算主体key
     */
    @TableField("finance_corp_key")
    private String financeCorpKey;

    /**
     * 客户key
     */
    @TableField("customer_key")
    private String customerKey;

    /**
     * 客户姓名
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 服务版块key
     */
    @TableField("service_section_key")
    private String serviceSectionKey;

    /**
     * 服务版块名称
     */
    @TableField("service_section_name")
    private String serviceSectionName;

    /**
     * 服务项目key
     */
    @TableField("service_items_key")
    private String serviceItemsKey;

    /**
     * 服务项目名称
     */
    @TableField("service_items_name")
    private String serviceItemsName;

    /**
     * 服务人员key
     */
    @TableField("service_user_key")
    private String serviceUserKey;

    /**
     * 服务人员
     */
    @TableField("service_user_name")
    private String serviceUserName;

    /**
     * 项目实收(收入)rmb
     */
    @TableField("income_rmb")
    private BigDecimal incomeRmb;

    /**
     * 项目实收(收入)hkd
     */
    @TableField("income_hkd")
    private BigDecimal incomeHkd;

    /**
     * 附件key
     */
    @TableField("annex_key")
    private String annexKey;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 来源部门key
     */
    @TableField("source_department_key")
    private String sourceDepartmentKey;

    /**
     * 来源部门名称
     */
    @TableField("source_department_name")
    private String sourceDepartmentName;

    /**
     * 来源人Key
     */
    @TableField("source_user_key")
    private String sourceUserKey;

    /**
     * 来源人
     */
    @TableField("source_user_name")
    private String sourceUserName;

    /**
     * 登记日期
     */
    @TableField("registration_time")
    private Date registrationTime;

    /**
     * 成交日期
     */
    @TableField("completion_time")
    private Date completionTime;

    /**
     * 潜在需求(服务)key 多选 英文逗号分隔,
     */
    @TableField("potential_demand_key")
    private String potentialDemandKey;

    /**
     * 潜在需求(服务)name 多选 英文逗号分隔,
     */
    @TableField("potential_demand_name")
    private String potentialDemandName;

    /**
     * 状态：0 未分配 1 跟进中 2 已完成 3 已签约未收款 4 已收款服务中 5 已取消
     */
    @TableField("status")
    private Integer status;

    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField("create_user_key")
    private String createUserKey;

    /**
     * 创建人名称
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField("update_user_key")
    private String updateUserKey;

    /**
     * 更新人名称
     */
    @TableField("update_user_name")
    private String updateUserName;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    public String getOldUuid() {
        return oldUuid;
    }

    public void setOldUuid(String oldUuid) {
        this.oldUuid = oldUuid;
    }
    public String getCorpKey() {
        return corpKey;
    }

    public void setCorpKey(String corpKey) {
        this.corpKey = corpKey;
    }
    public String getFinanceCorpKey() {
        return financeCorpKey;
    }

    public void setFinanceCorpKey(String financeCorpKey) {
        this.financeCorpKey = financeCorpKey;
    }
    public String getCustomerKey() {
        return customerKey;
    }

    public void setCustomerKey(String customerKey) {
        this.customerKey = customerKey;
    }
    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }
    public String getServiceSectionKey() {
        return serviceSectionKey;
    }

    public void setServiceSectionKey(String serviceSectionKey) {
        this.serviceSectionKey = serviceSectionKey;
    }
    public String getServiceSectionName() {
        return serviceSectionName;
    }

    public void setServiceSectionName(String serviceSectionName) {
        this.serviceSectionName = serviceSectionName;
    }
    public String getServiceItemsKey() {
        return serviceItemsKey;
    }

    public void setServiceItemsKey(String serviceItemsKey) {
        this.serviceItemsKey = serviceItemsKey;
    }
    public String getServiceItemsName() {
        return serviceItemsName;
    }

    public void setServiceItemsName(String serviceItemsName) {
        this.serviceItemsName = serviceItemsName;
    }
    public String getServiceUserKey() {
        return serviceUserKey;
    }

    public void setServiceUserKey(String serviceUserKey) {
        this.serviceUserKey = serviceUserKey;
    }
    public String getServiceUserName() {
        return serviceUserName;
    }

    public void setServiceUserName(String serviceUserName) {
        this.serviceUserName = serviceUserName;
    }
    public BigDecimal getIncomeRmb() {
        return incomeRmb;
    }

    public void setIncomeRmb(BigDecimal incomeRmb) {
        this.incomeRmb = incomeRmb;
    }
    public BigDecimal getIncomeHkd() {
        return incomeHkd;
    }

    public void setIncomeHkd(BigDecimal incomeHkd) {
        this.incomeHkd = incomeHkd;
    }
    public String getAnnexKey() {
        return annexKey;
    }

    public void setAnnexKey(String annexKey) {
        this.annexKey = annexKey;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getSourceDepartmentKey() {
        return sourceDepartmentKey;
    }

    public void setSourceDepartmentKey(String sourceDepartmentKey) {
        this.sourceDepartmentKey = sourceDepartmentKey;
    }
    public String getSourceDepartmentName() {
        return sourceDepartmentName;
    }

    public void setSourceDepartmentName(String sourceDepartmentName) {
        this.sourceDepartmentName = sourceDepartmentName;
    }
    public String getSourceUserKey() {
        return sourceUserKey;
    }

    public void setSourceUserKey(String sourceUserKey) {
        this.sourceUserKey = sourceUserKey;
    }
    public String getSourceUserName() {
        return sourceUserName;
    }

    public void setSourceUserName(String sourceUserName) {
        this.sourceUserName = sourceUserName;
    }
    public Date getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }
    public Date getCompletionTime() {
        return completionTime;
    }

    public void setCompletionTime(Date completionTime) {
        this.completionTime = completionTime;
    }
    public String getPotentialDemandKey() {
        return potentialDemandKey;
    }

    public void setPotentialDemandKey(String potentialDemandKey) {
        this.potentialDemandKey = potentialDemandKey;
    }
    public String getPotentialDemandName() {
        return potentialDemandName;
    }

    public void setPotentialDemandName(String potentialDemandName) {
        this.potentialDemandName = potentialDemandName;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
    public String getCreateUserKey() {
        return createUserKey;
    }

    public void setCreateUserKey(String createUserKey) {
        this.createUserKey = createUserKey;
    }
    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUserKey() {
        return updateUserKey;
    }

    public void setUpdateUserKey(String updateUserKey) {
        this.updateUserKey = updateUserKey;
    }
    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysCustomerOrder{" +
            "id=" + id +
            ", primaryKey=" + primaryKey +
            ", uuid=" + uuid +
            ", oldUuid=" + oldUuid +
            ", corpKey=" + corpKey +
            ", financeCorpKey=" + financeCorpKey +
            ", customerKey=" + customerKey +
            ", customerName=" + customerName +
            ", serviceSectionKey=" + serviceSectionKey +
            ", serviceSectionName=" + serviceSectionName +
            ", serviceItemsKey=" + serviceItemsKey +
            ", serviceItemsName=" + serviceItemsName +
            ", serviceUserKey=" + serviceUserKey +
            ", serviceUserName=" + serviceUserName +
            ", incomeRmb=" + incomeRmb +
            ", incomeHkd=" + incomeHkd +
            ", annexKey=" + annexKey +
            ", remark=" + remark +
            ", sourceDepartmentKey=" + sourceDepartmentKey +
            ", sourceDepartmentName=" + sourceDepartmentName +
            ", sourceUserKey=" + sourceUserKey +
            ", sourceUserName=" + sourceUserName +
            ", registrationTime=" + registrationTime +
            ", completionTime=" + completionTime +
            ", potentialDemandKey=" + potentialDemandKey +
            ", potentialDemandName=" + potentialDemandName +
            ", status=" + status +
            ", isDeleted=" + isDeleted +
            ", createUserKey=" + createUserKey +
            ", createUserName=" + createUserName +
            ", createTime=" + createTime +
            ", updateUserKey=" + updateUserKey +
            ", updateUserName=" + updateUserName +
            ", updateTime=" + updateTime +
        "}";
    }
}
